<!DOCTYPE html>
<html>
<head>
  <title>JMockit Coverage Report - PinScreen.java</title>
  <meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/>
  <link rel='stylesheet' type='text/css' href='../../../coverage.css'/>
  <script type='text/javascript' src='../../../coverage.js'></script>
  <script type='text/javascript' src='../../../prettify.js'></script>
</head>
<body onload='prettyPrint()'>
  <table cellpadding='0' cellspacing='1'>
    <caption>Starbucks\src\com\sb\view\PinScreen.java</caption>
    <tr>
      <td class='line'>1</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>package com.sb.view;</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'></td><td>&nbsp;</td>
      <td><pre class='imports prettyprint' onclick='showHideLines(this)'><div>import com.sb.controller.AppController;
import com.sb.controller.ScreenState;

import processing.core.PApplet;
import processing.core.PFont;
import processing.core.PImage;
</div><span>import ...</span></pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>10</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>public class PinScreen implements ScreenState {</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>12</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>	AppController <span class='instance uncovered' title='Reads: 0 Writes: 0'>appController</span>;</pre></td>
    </tr>
    <tr>
      <td class='line'>13</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>	KeyPad <span class='instance uncovered' title='Reads: 0 Writes: 0'>keypad</span>;</pre></td>
    </tr>
    <tr>
      <td class='line'>14</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>	PassCode <span class='instance uncovered' title='Reads: 0 Writes: 0'>passcode</span>;</pre></td>
    </tr>
    <tr>
      <td class='line'>15</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l15s0'>	String <span class='instance uncovered' title='Reads: 0 Writes: 0'>validPin</span> = "1234";</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>17</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>	PImage <span class='instance uncovered' title='Reads: 0 Writes: 0'>img</span>;</pre></td>
    </tr>
    <tr>
      <td class='line'>18</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>	PFont <span class='instance uncovered' title='Reads: 0 Writes: 0'>f</span>;</pre></td>
    </tr>
    <tr>
      <td class='line'>19</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>	PFont <span class='instance uncovered' title='Reads: 0 Writes: 0'>f1</span>;</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>21</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l21s0'>	public PinScreen(AppController p) {</pre></td>
    </tr>
    <tr>
      <td class='line'>22</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l22s0'>		appController = p;</pre></td>
    </tr>
    <tr>
      <td class='line'>23</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l23s0'>	}</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>25</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>	public void setup(PApplet applet) {</pre></td>
    </tr>
    <tr>
      <td class='line'>26</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l26s0'>		keypad = new KeyPad();</pre></td>
    </tr>
    <tr>
      <td class='line'>27</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l27s0'>		keypad.draw(applet);</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>29</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l29s0'>		passcode = new PassCode();</pre></td>
    </tr>
    <tr>
      <td class='line'>30</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l30s0'>		passcode.draw(applet);</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>32</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l32s0'>	}</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>34</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>	public void mousePressed(PApplet applet) {</pre></td>
    </tr>
    <tr>
      <td class='line'>35</td><td class='count'>0</td>
      <td><pre class='prettyprint jmp'>		<span id='l35s0' title='Executions: 0' class='uncovered'>if (applet.mouseX > 0</span> && <span id='l35s1' title='Executions: 0' class='uncovered'>applet.mouseX &lt; 88</span> && <span id='l35s2' title='Executions: 0' class='uncovered'>applet.mouseY > 240</span></pre></td>
    </tr>
    <tr>
      <td class='line'>36</td><td class='count'>0</td>
      <td><pre class='prettyprint jmp'>				&& <span id='l36s1' title='Executions: 0' class='uncovered'>applet.mouseY &lt; 280) {</span></pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>38</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l38s0'>			keypad.pressedNumber("1");</pre></td>
    </tr>
    <tr>
      <td class='line'>39</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l39s0'>			setCurrentScreen();</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>42</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>		}</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>44</td><td class='count'>0</td>
      <td><pre class='prettyprint jmp'>		else <span id='l44s1' title='Executions: 0' class='uncovered'>if (applet.mouseX > 0</span> && <span id='l44s2' title='Executions: 0' class='uncovered'>applet.mouseX &lt; 88</span> && <span id='l44s3' title='Executions: 0' class='uncovered'>applet.mouseY > 281</span></pre></td>
    </tr>
    <tr>
      <td class='line'>45</td><td class='count'>0</td>
      <td><pre class='prettyprint jmp'>				&& <span id='l45s1' title='Executions: 0' class='uncovered'>applet.mouseY &lt; 320) {</span></pre></td>
    </tr>
    <tr>
      <td class='line'>46</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l46s0'>			keypad.pressedNumber("4");</pre></td>
    </tr>
    <tr>
      <td class='line'>47</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l47s0'>			setCurrentScreen();</pre></td>
    </tr>
    <tr>
      <td class='line'>48</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>		}</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>50</td><td class='count'>0</td>
      <td><pre class='prettyprint jmp'>		else <span id='l50s1' title='Executions: 0' class='uncovered'>if (applet.mouseX > 0</span> && <span id='l50s2' title='Executions: 0' class='uncovered'>applet.mouseX &lt; 88</span> && <span id='l50s3' title='Executions: 0' class='uncovered'>applet.mouseY > 321</span></pre></td>
    </tr>
    <tr>
      <td class='line'>51</td><td class='count'>0</td>
      <td><pre class='prettyprint jmp'>				&& <span id='l51s1' title='Executions: 0' class='uncovered'>applet.mouseY &lt; 360) {</span></pre></td>
    </tr>
    <tr>
      <td class='line'>52</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l52s0'>			keypad.pressedNumber("7");</pre></td>
    </tr>
    <tr>
      <td class='line'>53</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l53s0'>			setCurrentScreen();</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>55</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>		}</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>57</td><td class='count'>0</td>
      <td><pre class='prettyprint jmp'>		else <span id='l57s1' title='Executions: 0' class='uncovered'>if (applet.mouseX > 89</span> && <span id='l57s2' title='Executions: 0' class='uncovered'>applet.mouseX &lt; 174</span></pre></td>
    </tr>
    <tr>
      <td class='line'>58</td><td class='count'>0</td>
      <td><pre class='prettyprint jmp'>				&& <span id='l58s1' title='Executions: 0' class='uncovered'>applet.mouseY > 240</span> && <span id='l58s2' title='Executions: 0' class='uncovered'>applet.mouseY &lt; 280) {</span></pre></td>
    </tr>
    <tr>
      <td class='line'>59</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l59s0'>			keypad.pressedNumber("2");</pre></td>
    </tr>
    <tr>
      <td class='line'>60</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l60s0'>			setCurrentScreen();</pre></td>
    </tr>
    <tr>
      <td class='line'>61</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>		}</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>63</td><td class='count'>0</td>
      <td><pre class='prettyprint jmp'>		else <span id='l63s1' title='Executions: 0' class='uncovered'>if (applet.mouseX > 89</span> && <span id='l63s2' title='Executions: 0' class='uncovered'>applet.mouseX &lt; 174</span></pre></td>
    </tr>
    <tr>
      <td class='line'>64</td><td class='count'>0</td>
      <td><pre class='prettyprint jmp'>				&& <span id='l64s1' title='Executions: 0' class='uncovered'>applet.mouseY > 281</span> && <span id='l64s2' title='Executions: 0' class='uncovered'>applet.mouseY &lt; 320) {</span></pre></td>
    </tr>
    <tr>
      <td class='line'>65</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l65s0'>			keypad.pressedNumber("5");</pre></td>
    </tr>
    <tr>
      <td class='line'>66</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l66s0'>			setCurrentScreen();</pre></td>
    </tr>
    <tr>
      <td class='line'>67</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>		}</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>69</td><td class='count'>0</td>
      <td><pre class='prettyprint jmp'>		else <span id='l69s1' title='Executions: 0' class='uncovered'>if (applet.mouseX > 89</span> && <span id='l69s2' title='Executions: 0' class='uncovered'>applet.mouseX &lt; 174</span></pre></td>
    </tr>
    <tr>
      <td class='line'>70</td><td class='count'>0</td>
      <td><pre class='prettyprint jmp'>				&& <span id='l70s1' title='Executions: 0' class='uncovered'>applet.mouseY > 321</span> && <span id='l70s2' title='Executions: 0' class='uncovered'>applet.mouseY &lt; 360) {</span></pre></td>
    </tr>
    <tr>
      <td class='line'>71</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l71s0'>			keypad.pressedNumber("8");</pre></td>
    </tr>
    <tr>
      <td class='line'>72</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l72s0'>			setCurrentScreen();</pre></td>
    </tr>
    <tr>
      <td class='line'>73</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>		}</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>75</td><td class='count'>0</td>
      <td><pre class='prettyprint jmp'>		else <span id='l75s1' title='Executions: 0' class='uncovered'>if (applet.mouseX > 89</span> && <span id='l75s2' title='Executions: 0' class='uncovered'>applet.mouseX &lt; 174</span></pre></td>
    </tr>
    <tr>
      <td class='line'>76</td><td class='count'>0</td>
      <td><pre class='prettyprint jmp'>				&& <span id='l76s1' title='Executions: 0' class='uncovered'>applet.mouseY > 361</span> && <span id='l76s2' title='Executions: 0' class='uncovered'>applet.mouseY &lt; 400) {</span></pre></td>
    </tr>
    <tr>
      <td class='line'>77</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l77s0'>			keypad.pressedNumber("0");</pre></td>
    </tr>
    <tr>
      <td class='line'>78</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l78s0'>			setCurrentScreen();</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>80</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>		}</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>82</td><td class='count'>0</td>
      <td><pre class='prettyprint jmp'>		else <span id='l82s1' title='Executions: 0' class='uncovered'>if (applet.mouseX > 175</span> && <span id='l82s2' title='Executions: 0' class='uncovered'>applet.mouseX &lt; 262</span></pre></td>
    </tr>
    <tr>
      <td class='line'>83</td><td class='count'>0</td>
      <td><pre class='prettyprint jmp'>				&& <span id='l83s1' title='Executions: 0' class='uncovered'>applet.mouseY > 240</span> && <span id='l83s2' title='Executions: 0' class='uncovered'>applet.mouseY &lt; 280) {</span></pre></td>
    </tr>
    <tr>
      <td class='line'>84</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l84s0'>			keypad.pressedNumber("3");</pre></td>
    </tr>
    <tr>
      <td class='line'>85</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l85s0'>			setCurrentScreen();</pre></td>
    </tr>
    <tr>
      <td class='line'>86</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>		}</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>88</td><td class='count'>0</td>
      <td><pre class='prettyprint jmp'>		else <span id='l88s1' title='Executions: 0' class='uncovered'>if (applet.mouseX > 175</span> && <span id='l88s2' title='Executions: 0' class='uncovered'>applet.mouseX &lt; 262</span></pre></td>
    </tr>
    <tr>
      <td class='line'>89</td><td class='count'>0</td>
      <td><pre class='prettyprint jmp'>				&& <span id='l89s1' title='Executions: 0' class='uncovered'>applet.mouseY > 281</span> && <span id='l89s2' title='Executions: 0' class='uncovered'>applet.mouseY &lt; 320) {</span></pre></td>
    </tr>
    <tr>
      <td class='line'>90</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l90s0'>			keypad.pressedNumber("6");</pre></td>
    </tr>
    <tr>
      <td class='line'>91</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l91s0'>			setCurrentScreen();</pre></td>
    </tr>
    <tr>
      <td class='line'>92</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>		}</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>94</td><td class='count'>0</td>
      <td><pre class='prettyprint jmp'>		else <span id='l94s1' title='Executions: 0' class='uncovered'>if (applet.mouseX > 175</span> && <span id='l94s2' title='Executions: 0' class='uncovered'>applet.mouseX &lt; 262</span></pre></td>
    </tr>
    <tr>
      <td class='line'>95</td><td class='count'>0</td>
      <td><pre class='prettyprint jmp'>				&& <span id='l95s1' title='Executions: 0' class='uncovered'>applet.mouseY > 321</span> && <span id='l95s2' title='Executions: 0' class='uncovered'>applet.mouseY &lt; 360) {</span></pre></td>
    </tr>
    <tr>
      <td class='line'>96</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l96s0'>			keypad.pressedNumber("9");</pre></td>
    </tr>
    <tr>
      <td class='line'>97</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l97s0'>			setCurrentScreen();</pre></td>
    </tr>
    <tr>
      <td class='line'>98</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>		}</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>100</td><td class='count'>0</td>
      <td><pre class='prettyprint jmp'>		else <span id='l100s1' title='Executions: 0' class='uncovered'>if (applet.mouseX > 175</span> && <span id='l100s2' title='Executions: 0' class='uncovered'>applet.mouseX &lt; 262</span></pre></td>
    </tr>
    <tr>
      <td class='line'>101</td><td class='count'>0</td>
      <td><pre class='prettyprint jmp'>				&& <span id='l101s1' title='Executions: 0' class='uncovered'>applet.mouseY > 361</span> && <span id='l101s2' title='Executions: 0' class='uncovered'>applet.mouseY &lt; 400) {</span></pre></td>
    </tr>
    <tr>
      <td class='line'>102</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l102s0'>			keypad.backspace();</pre></td>
    </tr>
    <tr>
      <td class='line'>103</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l103s0'>			setCurrentScreen();</pre></td>
    </tr>
    <tr>
      <td class='line'>104</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>		}</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>106</td><td class='count'>0</td>
      <td><pre class='prettyprint uncovered' id='l106s0'>	}</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>108</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>	@Override</pre></td>
    </tr>
    <tr>
      <td class='line'>109</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>	public void draw(PApplet applet) {</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>112</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>	}</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>114</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>	@Override</pre></td>
    </tr>
    <tr>
      <td class='line'>115</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>	public void drawArrow(int cx, int cy, int len, float angle, PApplet applet) {</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>118</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>	}</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>122</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>	public void setCurrentScreen(){</pre></td>
    </tr>
    <tr>
      <td class='line'>123</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>		System.out.println("pwd is" + keypad.getPassword());</pre></td>
    </tr>
    <tr>
      <td class='line'>124</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>		if (keypad.getPassword().length() &lt; 4) {			</pre></td>
    </tr>
    <tr>
      <td class='line'>125</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>			appController.setCurrentScreen(appController.getPinScreen());</pre></td>
    </tr>
    <tr>
      <td class='line'>126</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>		}</pre></td>
    </tr>
    <tr><td class='line'></td><td colspan='2'>&nbsp;</td></tr>
    <tr>
      <td class='line'>128</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>		else if((keypad.getPassword()).equals(validPin)){</pre></td>
    </tr>
    <tr>
      <td class='line'>129</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>			appController.setCurrentScreen(appController.getMyCardsMain());</pre></td>
    </tr>
    <tr>
      <td class='line'>130</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>		}</pre></td>
    </tr>
    <tr>
      <td class='line'>131</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>	}</pre></td>
    </tr>
    <tr>
      <td class='line'>132</td><td>&nbsp;</td>
      <td><pre class='prettyprint'>}</pre></td>
    </tr>
  </table>
</body>
</html>
